package com.example.book.entity;

import com.example.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true) // 继承父类属性
@TableName("t_book")        // 指定表名
public class Book extends BaseEntity {
    private Long id;
    private String title;
    private String author;
    private BigDecimal price; // 价格
    private Integer stock; // 库存
    private String category; // 分类
    private String isbn;

}
